<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>发布作品</title> 
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css"
	href="../static/bootstrap3/css/bootstrap.css">
<link rel="stylesheet" type="text/css"
	href="../static/bootstrap3/font-awesome-4.7.0/css/font-awesome.css" />
	<style type="text/css">
		body {
			padding-top: 20px;
			color: #d73e22;
		}
		.navbar{
			background-color: #d5d5d5;
			border: none;
		}
		h3{
			color: #e73f0a;
			position: absolute;
			left: 43%;
			top: -7px;
		}

		.back{
			color: #e73f0a;
			position: relative;
			left: -10px;
		}

	</style>
</head>
<body>
<header>
	<div class="container">
		<nav class="navbar navbar-default">
			<h3>地址管理</h3>
			<ul class="nav navbar-nav navbar-right">
				<li><a href="http://localhost:8080/bIndex"><span class="glyphicon glyphicon-home"></span>主页</a></li>
				<li><a href="http://localhost:8080/add_Address"><span class="glyphicon glyphicon-home"></span>添加地址</a></li>
				<li><a href="http://localhost:8080/cartInfo"><span class="fa fa-user-circle-o"></span>返回购物车</a></li>
			</ul>
		</nav>
	</div>
</header>

<div class="container">
	<table class="table table-striped">
		<thead>
			<tr>
				<th>姓名</th>
				<th>手机号</th>
				<th>地址</th>
				<th>管理</th>
			</tr>
		</thead>
		<tbody>
			<tr th:each="a:${list}">
				<td th:text="${a.name}"></td>
				<td th:text="${a.phone}"></td>
				<td th:text="${a.address}"></td>
				<td><a th:href="'deleteAddress?id='+${a.id}" class="btn btn-danger">删除</a></td>
			</tr>
		</tbody>
	</table>
</div>

</body>
<script type="text/javascript" src="../static/bootstrap3/jquery.min.js"></script>
<script type="text/javascript" src="../static/bootstrap3/js/bootstrap.js"></script>
<script type="text/javascript" src="../static/bootstrap3/js/holder.js"></script>
<script type="text/javascript" src="../static/bootstrap3/js/html5shiv.min.js"></script>
<script type="text/javascript" src="../static/bootstrap3/js/css3-mediaqueries.js"></script>
<script type="text/javascript" src="../static/bootstrap3/js/respond.min.js"></script>
<script type="text/javascript" src="../static/js/vue.js"></script>

</html>